
$(function () {

    $.ajax({
        url:'/webapi/student/getAll',
        success:function (result) {

            var len=result.length;
            var html="";
            for (var i=0;i<len;i++){

                html+="<tr><td>"+result[i].name+"</td><td>"
                    +result[i].password+"</td></tr>";
            }

            $("#tbStudent tbody").html(html);

        }

    })//end of ajax
    
});//end $function

